package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GwAgentCommissionMapper;
import com.ruoyi.system.domain.GwAgentCommission;
import com.ruoyi.system.service.IGwAgentCommissionService;

/**
 * 代理商分佣的平台权益配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-08
 */
@Service
public class GwAgentCommissionServiceImpl implements IGwAgentCommissionService 
{
    @Autowired
    private GwAgentCommissionMapper gwAgentCommissionMapper;

    /**
     * 查询代理商分佣的平台权益配置
     * 
     * @param id 代理商分佣的平台权益配置主键
     * @return 代理商分佣的平台权益配置
     */
    @Override
    public GwAgentCommission selectGwAgentCommissionById(String id)
    {
        return gwAgentCommissionMapper.selectGwAgentCommissionById(id);
    }

    /**
     * 查询代理商分佣的平台权益配置列表
     * 
     * @param gwAgentCommission 代理商分佣的平台权益配置
     * @return 代理商分佣的平台权益配置
     */
    @Override
    public List<GwAgentCommission> selectGwAgentCommissionList(GwAgentCommission gwAgentCommission)
    {
        return gwAgentCommissionMapper.selectGwAgentCommissionList(gwAgentCommission);
    }

    /**
     * 新增代理商分佣的平台权益配置
     * 
     * @param gwAgentCommission 代理商分佣的平台权益配置
     * @return 结果
     */
    @Override
    public int insertGwAgentCommission(GwAgentCommission gwAgentCommission)
    {
        return gwAgentCommissionMapper.insertGwAgentCommission(gwAgentCommission);
    }

    /**
     * 修改代理商分佣的平台权益配置
     * 
     * @param gwAgentCommission 代理商分佣的平台权益配置
     * @return 结果
     */
    @Override
    public int updateGwAgentCommission(GwAgentCommission gwAgentCommission)
    {
        return gwAgentCommissionMapper.updateGwAgentCommission(gwAgentCommission);
    }

    /**
     * 批量删除代理商分佣的平台权益配置
     * 
     * @param ids 需要删除的代理商分佣的平台权益配置主键
     * @return 结果
     */
    @Override
    public int deleteGwAgentCommissionByIds(String[] ids)
    {
        return gwAgentCommissionMapper.deleteGwAgentCommissionByIds(ids);
    }

    /**
     * 删除代理商分佣的平台权益配置信息
     * 
     * @param id 代理商分佣的平台权益配置主键
     * @return 结果
     */
    @Override
    public int deleteGwAgentCommissionById(String id)
    {
        return gwAgentCommissionMapper.deleteGwAgentCommissionById(id);
    }
}
